package com.chezhujie.www.domain;

import com.sys.core.init.mysql.BaseEntity;
import com.sys.core.init.mysql.annotation.Column;
import com.sys.core.init.mysql.annotation.Entity;
import com.sys.core.init.mysql.annotation.Id;
import com.sys.core.init.mysql.annotation.Table;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 汤伟杰 on 2017/6/1.
 */
@Entity
@Table(name = "czj_xy_orderdetail",describe = "订单详情表")
public class Czjorderdetail extends BaseEntity{
    @Id
    @Column(describe = "主键",length = 19,inputType = "hidden")
    private String id;
    @Column(describe = "订单编号",length = 25,inputType = "text")
    private String orderCode;
    @Column(describe = "商品",length = 19,inputType = "select",inputCode = "str")
    private String commodityId;
    @Column(describe = "订单标题",length = 100,inputType = "str")
    private String title;
    @Column(describe = "数量",length = 11,inputType = "int")
    private Integer amount;
    @Column(describe = "价格",length = 11,precision = 2,inputType = "int")
    private BigDecimal salePrice;
    @Column(describe = "创建时间",inputType = "date")
    private Date createTime;
    private Date createTimeStart;
    private Date createTimeEnd;

    @Column(length = 10,precision = 2,describe = "最小预付租金",inputType = "decimal")
    private BigDecimal prepaidRent;
    @Column(length = 11,describe = "起租天数",inputType = "int")
    private Integer minPrepaidRent;
    @Column(length = 10,precision = 2,describe = "日租金",inputType = "decimal")
    private BigDecimal dailyRent;
    @Column(describe = "开始计算出租日期",inputType = "date")
    private Date rentDate;
    private Date rentDateStart;
    private Date rentDateEnd;

    @Column(describe = "设备编号",inputType = "str")
    private String equipmentSerNum;
    
    
    @Column(describe = "结束租赁金额",inputType = "decimal")
    private BigDecimal endLeaseAmount;
    @Column(describe = "结束租赁的订单号",inputType = "str")
    private String endLeaseNum;
    @Column(describe = "结束租赁日期",inputType = "date")
    private Date endRentDate;
    private Date endRentDateStart;
    private Date endRentDateEnd;
    @Column(describe = "租赁天数",inputType = "int")
    private Integer leaseDays;
    @Column(describe = "租赁计算天数",inputType = "int")
    private Integer leasejisuanDays;

    public Integer getLeasejisuanDays() {
        return leasejisuanDays;
    }

    public void setLeasejisuanDays(Integer leasejisuanDays) {
        this.leasejisuanDays = leasejisuanDays;
    }

    public Integer getLeaseDays() {
        return leaseDays;
    }

    public void setLeaseDays(Integer leaseDays) {
        this.leaseDays = leaseDays;
    }

    public BigDecimal getEndLeaseAmount() {
        return endLeaseAmount;
    }

    public void setEndLeaseAmount(BigDecimal endLeaseAmount) {
        this.endLeaseAmount = endLeaseAmount;
    }

    public String getEndLeaseNum() {
        return endLeaseNum;
    }

    public void setEndLeaseNum(String endLeaseNum) {
        this.endLeaseNum = endLeaseNum;
    }

    public Date getEndRentDate() {
        return endRentDate;
    }

    public void setEndRentDate(Date endRentDate) {
        this.endRentDate = endRentDate;
    }

    public Date getEndRentDateStart() {
        return endRentDateStart;
    }

    public void setEndRentDateStart(Date endRentDateStart) {
        this.endRentDateStart = endRentDateStart;
    }

    public Date getEndRentDateEnd() {
        return endRentDateEnd;
    }

    public void setEndRentDateEnd(Date endRentDateEnd) {
        this.endRentDateEnd = endRentDateEnd;
    }

    public BigDecimal getPrepaidRent() {
        return prepaidRent;
    }

    public void setPrepaidRent(BigDecimal prepaidRent) {
        this.prepaidRent = prepaidRent;
    }

    public Integer getMinPrepaidRent() {
        return minPrepaidRent;
    }

    public void setMinPrepaidRent(Integer minPrepaidRent) {
        this.minPrepaidRent = minPrepaidRent;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTimeStart() {
        return createTimeStart;
    }

    public void setCreateTimeStart(Date createTimeStart) {
        this.createTimeStart = createTimeStart;
    }

    public Date getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(Date createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public BigDecimal getDailyRent() {
        return dailyRent;
    }

    public void setDailyRent(BigDecimal dailyRent) {
        this.dailyRent = dailyRent;
    }

    public Date getRentDate() {
        return rentDate;
    }

    public void setRentDate(Date rentDate) {
        this.rentDate = rentDate;
    }

    public Date getRentDateStart() {
        return rentDateStart;
    }

    public void setRentDateStart(Date rentDateStart) {
        this.rentDateStart = rentDateStart;
    }

    public Date getRentDateEnd() {
        return rentDateEnd;
    }

    public void setRentDateEnd(Date rentDateEnd) {
        this.rentDateEnd = rentDateEnd;
    }

	public String getEquipmentSerNum() {
		return equipmentSerNum;
	}

	public void setEquipmentSerNum(String equipmentSerNum) {
		this.equipmentSerNum = equipmentSerNum;
	}


}
